package shuogg.test.service;

import java.sql.SQLException;

import org.junit.Test;

import shuogg.mysql.dao.JdbcUtils;
import shuogg.mysql.dao.StudentDao;

public class StudentService {
    StudentDao dao = new StudentDao();
    @Test
    public void stuTest() throws SQLException {
        JdbcUtils.beginTransaction();
        dao.updateTuitionByName("王永", 1000);
        JdbcUtils.commitTransaction();
    }

}
